package com.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.core.dao.FasilitasSekolahDao;
import com.core.dao.GenericDao;
import com.core.entity.Fasilitas;
import com.core.entity.FasilitasSekolah;
import com.core.entity.Sekolah;
import com.core.service.FasilitasSekolahService;

@Service
public class FasilitasSekolahServiceImpl extends
		GenericServiceImpl<FasilitasSekolah, Long> implements
		FasilitasSekolahService {

	@Autowired
	private FasilitasSekolahDao fasilitasDao;

	@Override
	public GenericDao<FasilitasSekolah, Long> getDao() {
		return fasilitasDao;
	}

	@Override
	public List<FasilitasSekolah> fasilitasSekolah(Sekolah sekolah) {
		// TODO Auto-generated method stub
		return findAllByProperty("sekolah", sekolah);
	}


}
